package com.any.sckill.common.constants;

public class SeckillConstants {
	
	/**
	 * Redis lock key with default value "seckill"
	 */
	public static final String KV_DEFAULT_VALUE = "seckill";
	
	/**
	 * Redis lock key default timeout value
	 * Because this provider is a function of second kill, so the default timeout value is 1
	 */
	public static final int DEFAULT_lOCK_TIMEOUT_VALUE = 1;
	
	public static final String SECOND_KILL_ZK_MAIN_PATH = "/any/seckill/";
	
	public static final String SECOND_KILL_ZK_LOCK_MAIN_PATH = SECOND_KILL_ZK_MAIN_PATH + "lock/";
	
	public static final String SECOND_KILL_ZK_SERVICE_PATH = SECOND_KILL_ZK_MAIN_PATH + "service/";
	
	public static final String DEFAULT_SERVICE_NAME = "serviceA";
	
	public static final String DEFAULT_SERVICE_KEY_NAME = "serviceReg";
	public static final String DEFAULT_SERVICE_NODE_NAME = DEFAULT_SERVICE_KEY_NAME;
}
